
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	
<head>
<title>Гостевая книга</title>
<link type="text/css" rel="stylesheet" href="./views/templates.css"/>
</head>
<body>
	
<h1>Гостевая книга</h1>
 
   <h2>Добавить новый комментарий</h2>
<p><table cellspacing="2" cellpadding="2" border="0"><form action=<? PATH ?>?addcomm=<? echo $messageid ?> method="post"><tr>

<div class=c><div class=cn><b><? echo $row["name"] ?></b> 
   пишет <? echo $row["datetime"] ?>:</div><? echo $row["message"]?></div>
   
<td>Имя<font color=#880000>*</font color>:</td>
<td><input type=text name="name" size=30 maxlength=100 value="<?if (isset ($name)) { echo $name;}?>">
  </td>
</tr><tr>

<td>Сообщение<font color=#880000>*</font>:</td>
<td><textarea cols=40 rows=5 name="message"><? if (isset ($message)) {echo $message;} ?></textarea>
 <td>
</tr><tr>
<td>&nbsp;</td>
<td><small><font color=#880000>*</font>&nbsp;&#151; Обязательные поля</small></td>
</tr><tr>
<td>&nbsp;</td>
<td><input name="sb" type=submit value="Добавить комментарий">
<button type="button" onclick="javascript:history.go(-1);">Назад</button>
</td>
  
</form></tr>

</table>
</body>